<h1>Listado de Subgrupos</h1>
<% if flash[:notice] %>
    <div id="notice"><%= flash[:notice] %></div>
<% end %>
<% if @cultural_heritage_sub_groups.size > 0 %>
<table class="paginated_table sorted_table">
  <thead>
  <tr>
    <th>Nombre</th>
    <th>Descripción</th>
    <th>Acciones</th>
  </tr>
</thead>
<tbody>
<% @cultural_heritage_sub_groups.each do |cultural_heritage_sub_group| %>
  <tr>
    <td><%= cultural_heritage_sub_group.name %></td>
    <td><%= cultural_heritage_sub_group.description %></td>
    <td>
      
      <%= link_to image_tag("navi/search-16-ns.png", :border => 0,:title=>"Mostrar"), cultural_heritage_sub_group%>
      <% if (user_signed_in? && ([2].include?(current_user.role))) %>
    <%= link_to image_tag("navi/pencil-16-ns.png", :border => 0,:title=>"Editar"), edit_cultural_heritage_sub_group_path(cultural_heritage_sub_group) %>
    <%= link_to image_tag("navi/cross-16-ns.png", :border => 0,:title=>"Eliminar"), cultural_heritage_sub_group, :confirm => 'Esta Seguro?', :method => :delete %>
    <%end%>
    </td>
  </tr>
<% end %>
  </tbody>
</table>
<% else %>
  <p>Ningún Subgrupo Encontrado</p>
<% end %>
<br />
<%# if (user_signed_in? && ([2].include?(current_user.role))) %>
<%#= link_to 'Nuevo Subgrupo', new_cultural_heritage_sub_group_path %>
<%#end%>